﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Common;
public  class MotoRun : MonoBehaviour {

    public Text Notice;
    public static GameObject DoorWires;

    // Use this for initialization
    private void Awake()
    {
        Init();
    }
    void Start()
    {
       
    }

     
    void Init()
    {
        Notice = GameObject.Find("Notice").GetComponent<Text>();
        DoorWires = GameObject.Find("DoorWires");
        Notice.text = "操作步骤：\n" +
            "<color=red>1.闭合电源开关,接通电源,关闭控制箱门。</color>\n" +
            "<color=red>2.按下绿色启动按钮，电机运行;按下红色停止按钮，电机停止运行。</color>\n";
        Global.InitMotoRun();
    }
    // Update is called once per frame
    void Update()
    {

    }

    public void HelpOn()
    {
        string helpcontent = "1.鼠标单击电源开关，可闭合或断开电源开关。\n" +
                           "2.控制箱门打开时，单击控制箱门可关闭控制箱门；控制箱关闭时，单击控制箱门手柄可打开控制箱门。\n" +
                           "3.鼠标点击相应按钮，即可按下按钮。\n";
        NoticeBox.Show("操作提示", helpcontent);

    }
}
